package com.laiketui.admin.mch.api.authority;

import com.laiketui.domain.vo.MainVo;
import com.laiketui.domain.vo.admin.menu.AddMenuMainVo;
import com.laiketui.core.exception.LaiKeAPIException;

import java.util.Map;

/**
 * 权限菜单接口
 *
 * @author Trick
 * @date 2021/12/19 10:30
 */
public interface MenuService {

    /**
     * 获取菜单列表
     *
     * @param vo   -
     * @param sid  -
     * @param id   -
     * @param name -
     * @return Map
     * @throws LaiKeAPIException-
     * @author Trick
     * @date 2021/12/19 10:33
     */
    Map<String, Object> getMenuList(MainVo vo, String name, String id, String sid) throws LaiKeAPIException;

    /**
     * 添加菜单
     *
     * @param vo -
     * @throws LaiKeAPIException-
     * @author Trick
     * @date 2021/12/19 10:35
     */
    void addMenu(AddMenuMainVo vo) throws LaiKeAPIException;

    /**
     * 删除菜单
     *
     * @param vo -
     * @param id -
     * @throws LaiKeAPIException-
     * @author Trick
     * @date 2021/12/19 10:36
     */
    void delMenu(MainVo vo, String id) throws LaiKeAPIException;


}
